<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>Add New Employee</h1>
	<form action="#" th:action="@{/addemp}" method="POST">
		<table>
			<tr>
				<td>Name :</td>
				<td><input name="name" /></td>
			</tr>
			<tr>
				<td>Password :</td>
				<td><input name="password" /></td>
			</tr>
			<tr>
				<td>Email :</td>
				<td><input name="email" /></td>
			</tr>
			<tr>
				<td>Sex :</td>
				<td>
				<div th:each="s : ${sexs}">
        			<input type="radio" name="sex"  th:value="${s.key}"/><label th:text="${s.value}"></label>
        		</div>
        		</td>
			</tr>
			<tr>
				<td>Country :</td>
				<td>
				<select name="country">
                    <option th:each="co : ${countries}" th:value="${co}" th:text="${co}"></option>
                </select>
				</td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" value="Save Employee" /></td>
			</tr>
		</table>
	</form>

	<br />
	<a href="listform">view employees</a>
</body>
</html>